home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 June / CHIP Haziran 2001.iso / prog / share / 04 / setup.exe / MM6.Cab / F1542_Intersection.action.F6A680DD_F3FB_4CF3_BABB_0D0F06E630F5 < prev    next >
Text File  |  2000-08-17  |  5KB  |  102 lines

  1. <html>
  2.  
  3.     <head>
  4.         <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  5.         <title>Intersection Action</title>
  6.         <meta name="generator" content="Adobe GoLive 4">
  7.     </head>
  8.  
  9.     <body bgcolor="white">
  10.         <center>
  11.             <font size="6">Intersection Action</font>
  12.             <hr>
  13.         </center>
  14.         <csactionclass name="Intersection" function="CSLayerIntersect" nsversion="4" ieversion="4" actiontype="3">
  15.         <csactionparam name="layer1" type="GLActionLayerParam"></csactionparam>
  16.         <csactionparam name="layer2" type="GLActionLayerParam"></csactionparam>
  17.         </csactionclass>
  18.         <p>IE Functions Script
  19.         <script language="JavaScript1.2" src="../../GlobalScripts/IE.scpt" cyberversion="N1.2"></script>
  20.         </p>
  21.         <p>StyleVis Functions Script
  22.         <script language="JavaScript1.2" src="../../GlobalScripts/StyleVis.scpt"></script>
  23.         </p>
  24.         <p>Intersection Action Main Script
  25.         <script language="JavaScript1.2" cyberversion="N1.2"><!--
  26. function CSLayerIntersect (condition)
  27. {
  28.     var l1,t1,r1,b1,l2,t2,r2,b2;
  29.     if (IsIE()) {
  30.         var layer1=document.all.tags("div")[condition[1]];
  31.         var layer2=document.all.tags("div")[condition[2]];
  32.         l1=layer1.style.pixelLeft; t1=layer1.style.pixelTop; r1=layer1.offsetWidth+l1; b1=layer1.offsetHeight+t1;
  33.         l2=layer2.style.pixelLeft; t2=layer2.style.pixelTop; r2=layer2.offsetWidth+l2; b2=layer2.offsetHeight+t2;    
  34.     } else {
  35.         var layer1=CSNSStyl(condition[1]);
  36.         var layer2=CSNSStyl(condition[2]);
  37.         l1=layer1.x; t1=layer1.y; r1=layer1.clip.width+l1; b1=layer1.clip.height+t1;
  38.         l2=layer2.x; t2=layer2.y; r2=layer2.clip.width+l2; b2=layer2.clip.height+t2;
  39.     }
  40.     var w = (r1 < r2 ? r1 : r2) - (l1 > l2 ? l1 : l2)
  41.     var h = (b1 < b2 ? b1 : b2) - (t1 > t2 ? t1 : t2)
  42.     return ((w >= 0) && (h >= 0));
  43. }
  44. // -->
  45.         </script>
  46.         </p>
  47.  
  48.         <table cool width="221" height="153" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
  49.             <tr height="1" cntrlrow>
  50.                 <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
  51.                 <td width="4" height="1"><spacer type="block" width="4" height="1"></td>
  52.                 <td width="76" height="1"><spacer type="block" width="76" height="1"></td>
  53.                 <td width="140" height="1"><spacer type="block" width="140" height="1"></td>
  54.             </tr>
  55.             <tr height="6">
  56.                 <td width="1" height="6"><spacer type="block" width="1" height="6"></td>
  57.                 <td width="4" height="6"><spacer type="block" width="4" height="6"></td>
  58.                 <td width="76" height="6"><spacer type="block" width="76" height="6"></td>
  59.                 <td width="140" height="6"><spacer type="block" width="140" height="6"></td>
  60.             </tr>
  61.             <tr height="3">
  62.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  63.                 <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
  64.                 <td width="76" height="3"><spacer type="block" width="76" height="3"></td>
  65.                 <td width="140" height="22" colspan="1" rowspan="2" valign="top" align="left" xpos="80">
  66.                     <csactioncntrl name="layer1" x="80" y="6" width="136" height="18" alignx="scale" aligny="top">
  67.                 </td>
  68.             </tr>
  69.             <tr height="19">
  70.                 <td width="1" height="19"><spacer type="block" width="1" height="19"></td>
  71.                 <td width="4" height="19"><spacer type="block" width="4" height="19"></td>
  72.                 <td width="76" height="19" colspan="1" rowspan="1" valign="top" align="left" xpos="4">
  73.                     <csactioncntrl type="InfoText" value="Floating Box" x="4" y="9" width="70" height="17" alignx="left" aligny="top">
  74.                 </td>
  75.             </tr>
  76.             <tr height="3">
  77.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  78.                 <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
  79.                 <td width="76" height="3"><spacer type="block" width="76" height="3"></td>
  80.                 <td width="140" height="27" colspan="1" rowspan="2" valign="top" align="left" xpos="80">
  81.                     <csactioncntrl name="layer2" x="80" y="28" width="136" height="18" alignx="scale" aligny="top">
  82.                 </td>
  83.             </tr>
  84.             <tr height="24">
  85.                 <td width="1" height="24"><spacer type="block" width="1" height="24"></td>
  86.                 <td width="4" height="24"><spacer type="block" width="4" height="24"></td>
  87.                 <td width="76" height="24" colspan="1" rowspan="1" valign="top" align="left" xpos="4">
  88.                     <csactioncntrl type="InfoText" value="Floating Box" x="4" y="31" width="70" height="17" alignx="left" aligny="top">
  89.                 </td>
  90.             </tr>
  91.             <tr height="97">
  92.                 <td width="1" height="97"><spacer type="block" width="1" height="97"></td>
  93.                 <td width="4" height="97"><spacer type="block" width="4" height="97"></td>
  94.                 <td width="216" height="97" colspan="2" rowspan="1" valign="top" align="left" xpos="4">
  95.                     <csactioncntrl type="InfoText" value="This action returns true if both specified Floating Boxes will be intersected otherwise it returns false." x="4" y="55" width="212" height="41" alignx="scale" aligny="top">
  96.                 </td>
  97.             </tr>
  98.         </table>
  99.     </body>
  100.  
  101. </html>
  102.